﻿using Newtonsoft.Json;

namespace Infrastructure.ExternalService.Core.FileStorage
{
    public class FileUploadRequest
    {
        /// <summary>
        /// 过期时间 只对O类型的有效  T 临时文件有效时间线上默认 1800分钟
        /// </summary>
        [JsonProperty("fileExpire")]
        public string FileExpire { get; set; }

        /// <summary>
        /// F:正式;T:临时(默认);O:一次
        /// </summary>
        [JsonProperty("fileStatus")]
        public string FileStatus { get; set; } = "T";

        /// <summary>
        /// P:私有;A:权限;O:开放
        /// </summary>
        [JsonProperty("fileType")]
        public string FileType { get; set; } = "O";
    }

    public class DownloadRequest
    {
        public string path { get; set; }
    }

}
